package com.xiaoyang.ssyx.acl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoyang.ssyx.model.acl.Role;
import com.xiaoyang.ssyx.vo.acl.RoleQueryVo;

import java.util.Map;

/**
 * @AUTHOR XiaoYang
 * @DATE 2023/6/13-19:32
 * @DESCRIPTION TODO
 */
public interface RoleService extends IService<Role> {

    IPage<Role> selectRolePage(Page<Role> pageParam, RoleQueryVo roleQueryVo);

    //获取所有角色，根据用户id查询用户分配角色列表
    Map<String, Object> getRoleByAdminId(Long adminId);

    //为用户分配角色
    void saveAdminRole(Long adminId, Long[] roleIds);
}
